//
//  UINavigationController+Extension.swift
//  HuaYun
//
//  Created by enghou on 2018/11/28.
//  Copyright © 2018 xyxorigation. All rights reserved.
//

import Foundation
extension UINavigationController{
    
    open override var shouldAutorotate: Bool{
        get{
            return self.children[self.children.count - 1].shouldAutorotate
        }
    }
    
    open override var supportedInterfaceOrientations: UIInterfaceOrientationMask{
        get{
            return self.children[self.children.count - 1].supportedInterfaceOrientations
        }
    }
}
